-- Version
-- Create by zouyb
-- 版本相关

require "json"

module("Version", package.seeall);

local engineVersion;

---------------------------------
-- 获取引擎版本号
function getEngineVersion()
	-- 读取config.json, 获取引擎版本号
	if engineVersion == nil then
		local content = cc.FileUtils:getInstance():getStringFromFile("config.json");
		local root = json.decode(content);
		
		if root.init_cfg.engine_verion == nil then
		    engineVersion = "";
		else
            engineVersion = root.init_cfg.engine_verion;
		end  
	end
	
    return engineVersion;
end
